package com.lzw.mall.common.service;

import com.lzw.mall.common.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzw.mall.common.vo.LayuiTableVO;
import com.lzw.mall.common.vo.ResultVO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lizhenwei
 * @since 2023-03-23
 */
public interface IMemberService extends IService<Member> {

    LayuiTableVO list(Integer page, Integer limit, String keyword, String sex, String status);

    ResultVO doSave(Member m);

    ResultVO doSelectById(Integer id);

    ResultVO updatePassword(String oldPassword, String newPassword, String againPassword);

    ResultVO updateMima(Integer id);

    void openMember(Integer[] ids);

    void closeMember(Integer[] ids);

    boolean check(String username, String password, String code, HttpServletRequest request);

    boolean selectByPhone(String phone);

    boolean selectByUsername(String username);

    void doInsert(Member m);

    ResultVO doSelectByUsername();
}
